package com.yy.wga.common.core.exception;

import com.yy.wga.common.core.enmus.ResponseCode;

/**
 * @author ludezh
 * @company Information Technology
 * @description 业务异常类, 主要用于将错误信息返回给前端
 * @since 2017/11/24
 */
public class BusinessException extends BaseException {

    private static final long serialVersionUID = 1735388308027428062L;

    public BusinessException(String code, String description, boolean isRecord, Throwable cause) {
        super(code, description, isRecord, cause);
    }

    public BusinessException(String code, String description, boolean isRecord) {
        super(code, description, isRecord);
    }

    public BusinessException(String code, String description) {
        super(code, description);
    }

    public BusinessException(String description, boolean isRecord) {
        super(description, isRecord);
    }

    public BusinessException(String description) {
        super(description);
    }

    public BusinessException(String description, boolean isRecord, Throwable cause) {
        super(description, isRecord, cause);
    }

    public BusinessException(String description, Throwable cause) {
        super(description, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(ResponseCode resp) {
        super(resp.getCode(), resp.getDescribe());
    }
}
